<template>
	<a-alert v-if="props.status === '正常'"
		message="检测正常"
		description="未检测出病鸡！"
		type="success"
		show-icon
		 closable
		 @close="onClose"
	/>
	<a-alert v-else-if="props.status === '异常'"
		message="检测异常"
		description="检测出病鸡！"
		type="warning"
		show-icon
		 closable
		 @close="onClose"
	/>
	<a-alert v-else-if="props.status === 'error'"
			 message="检测错误"
			 description="程序发生未知错误！"
			 type="warning"
			 show-icon
			 closable
			 @close="onClose"
	/>
</template>

<script setup="detectResultPanle">
	const props = defineProps({
		status : String,
		required : false,
	});

	const onClose = e => {
		console.log(e, 'I was closed.');
	};
</script>

<style scoped>

</style>
